<body>
<nav class="navbar navbar-fixed-top navbar-inverse">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
     
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a href="index.php">首页 <span class="sr-only">(current)</span></a></li>
        <?php 
        foreach($data['type'] as $row){
          echo '<li><a href="index.php?c=show&m=show&id='.$row['tid'].'">'.$row['typename'].'</a></li>';
        }
         ?>
            

    
      </ul>
      <form class="navbar-form navbar-left" role="search" method="post" action="search.php">
        <div class="form-group">
          <input type="text" class="form-control" name="videoname" placeholder="Search">
        </div>
        <button type="submit" class="btn btn-default">搜索</button>
      </form>
      <ul class="nav navbar-nav navbar-right">
          <li class="active"><a href="#" >欢迎 访问本站</a></li>
           
            

            <li><a href="logout.php">注销</a></li>
            
            <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="botton" aria-haspopup="true" aria-expanded="false">个人中心<span class="caret"></span></a>
            <ul class="dropdown-menu">
            <li><a href="#changePassword" data-toggle="modal" data-target="#changePassword">修改个人密码</a></li>

             <li><a href="#changeInfor" data-toggle="modal" data-target="#changeInfor">修改个人信息</a></li>
             <li><a href="./myCommentList.php" >我的评价</a></li></ul>
         </li>       

            <li><a href="#" data-toggle="modal" data-target="#reg">注册</a></li>      
        <li><a href="#" data-toggle="modal" data-target="index.php?c=index&m=login">登录</a></li>

      </ul>
  
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>

<?php   require_once('./Home/View/template/tpl/head.php'); ?>